//creates a new object
var com = {};
//attach the quizzpot object
com.quizzpot = {};
//creates the "package" 
com.quizzpot.tutorial = {};
//creates the constructor Person
com.quizzpot.tutorial.Person = function(options){
	this.name = options.name;
}

//verify if the "com" variable exist, 
//if it does not exist create an empty object
var com = com || {};
//we do the same process
com.quizzpot = com.quizzpot || {}; 
com.quizzpot.tutorial = com.quizzpot.tutorial || {};

//creates the object constructor
com.quizzpot.tutorial.User = function(options){
	this.nickname = options.nickname;
}

//create an instance
var p = new com.quizzpot.tutorial.Person({name:'John'});
var u = new com.quizzpot.tutorial.User({nickname:'stock'});
//print in the console
console.debug(u);
console.debug(p);